package com.qhgrain.api.menurolepermission.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.pubframework.springmybatis.dao.IMysqlBaseMapper;
import com.qhgrain.api.menurolepermission.entity.Menu;

public interface MenuMapper extends IMysqlBaseMapper<Menu>{

	
	void updateStatus(@Param("ids")List<String> menuId,@Param("status")String status);
	
	List<Menu> queryAll(@Param("appId")String appId,@Param("userId")String userId,@Param("status")String status);
	
	List<Menu> queryTopLevelMenu(@Param("appId")String appId,@Param("userId")String userId,@Param("status")String status);
	
	List<Menu> queryNextChildMenu(@Param("parentMenuId")String parentMenuId,@Param("userId")String userId,@Param("status")String status);

	List<Menu> queryAllChildMenu(@Param("parentMenuId")String parentMenuId,@Param("userId")String userId,@Param("status")String status);
}
